package com.dtream.nacos.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author : lil0103
 * @description 接口示例
 * @date : 2020/12/9
 */
@Data
@Builder
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class ExampleIp implements Serializable {

    private static final long serialVersionUID = 5324334831275796362L;

    /**
     * ip
     */
    @NotBlank(message = "ip 至少需要个")
    @ApiModelProperty(example = "192.168.1.1", required = true)
    private String ip;
}
